<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        width: 200px;
        height: 50px;
        border: 1px solid red;
        /* 水平对齐方式 */
        text-align: center;
        /* 文本修饰 overline 上划线 underline 下划线 line-through 删除线 */
        text-decoration: line-through;
        /* 设置行高 默认为字体高度 */
        line-height: 50px;
        text-shadow: red -1px -1px 1px;
        /* 设置字体大小 */
        font-size: 20px;
        /* 设置字体加粗 */
        font-weight: bold;
        /* 设置斜体 */
        font-style: italic;
        font-family: HarmonyOS_Sans_SC;
      }

      a {
        text-decoration: none;
      }

      h1 {
        /* 去掉加粗 */
        font-weight: normal;
        font: 50px cursive;
      }
    </style>
  </head>

  <body>
    <h1>这是h1</h1>
    <a href="">超链接</a>
    <div>文本和字体测试</div>
  </body>
</html>
